<!doctype html>
<html>
<head>
  <title>头号试玩-hybird</title>
  <meta name="App-Config" content="fullscreen=yes,useHistoryState=yes,transition=yes">
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta content="yes" name="apple-touch-fullscreen">
  <meta content="telephone=no,email=no" name="format-detection">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover">
  <meta name="author" content="touhaoshiwan.com">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta content="telephone=no,email=no" name="format-detection">
  <link rel="stylesheet" type="text/css" href="/v1/css/hybird.css?v1">
</head>
<script>
  !function(e,t){function n(){t.body?t.body.style.fontSize=12*o+"px":t.addEventListener("DOMContentLoaded",n)}function d(){var e=i.clientWidth/10;i.style.fontSize=e+"px"}var i=t.documentElement,o=e.devicePixelRatio||1;if(n(),d(),e.addEventListener("resize",d),e.addEventListener("pageshow",function(e){e.persisted&&d()}),o>=2){var a=t.createElement("body"),s=t.createElement("div");s.style.border=".5px solid transparent",a.appendChild(s),i.appendChild(a),1===s.offsetHeight&&i.classList.add("hairlines"),i.removeChild(a)}}(window,document);
</script>
<body>
<section class="wrapper">
  <div class="master_vision">
    <img src="/v1/images/hybird/hy1.png" alt="">
  </div>
  <div class="hy1_tx_box">
    <h3>苹果官方认证</h3>
    <p>为获取更多任务</p>
    <p>需要您安装证书验证设备唯一性</p>
  </div>
  <div class="btnBox" onclick="stepAction()">
    <img src="/v1/images/hybird/hy_btn1.png" alt="">
  </div>
</section>
<script type="text/javascript">
  var timer;
  function check() {
    nativeOverride('checkudid',{},function (result) {
      if (result.status == '1' || result== '1') {
        clearInterval(timer);
        nativeOverride('completecert',{},function(){});
      }
    });
  }
  function stepAction() {
    clearInterval(timer);
    nativeOverride('loadingpage',{"url": "http://new.rdmobi.cn/ttsw-new.mobileconfig","target":"safari"},function(){});
    timer = setInterval('check()', 1000);
  }
  var fun;
  function nativeOverride(ttName,json,callback){
    fun = callback;
    if(typeof(ttnative) !== 'undefined'){
      var result;
      eval('result=ttnative.'+ttName+'('+JSON.stringify(json)+')');
      fun(result);
    }else{
      json.callback = "fun";
      eval('window.webkit.messageHandlers.'+ttName+'.postMessage('+JSON.stringify(json)+');');
    }
  }
</script>
</body>
</html>